package com.dfbz.controller.view;

import com.dfbz.controller.BaseServlet;
import com.dfbz.pojo.PageEntity;
import com.dfbz.model.User;
import com.dfbz.service.UserService;
import com.dfbz.service.impl.UserServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/view/location/*")
public class ViewServlet extends BaseServlet {
    private UserService userService=new UserServiceImpl();
    public void register(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/register.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void login(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/index.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void home(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/home.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void user(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void department(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/department.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void user_look(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user_look.jsp").forward(req,resp);
            return;
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void user_detail(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/user_detail.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void my_user(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/my_user.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void article(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void article_collect(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_collect.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void article_add(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_add.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void article_detail(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/article_detail.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
    public void meeting(HttpServletRequest req, HttpServletResponse resp){
        try {
            req.getRequestDispatcher("/html/meeting.jsp").forward(req,resp);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
